package com.jiazixuan.stock.mapper;

import com.jiazixuan.stock.pojo.domain.StockBusinessInfomation;
import com.jiazixuan.stock.pojo.entity.StockBusiness;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 17127
* @description 针对表【stock_business(主营业务表)】的数据库操作Mapper
* @createDate 2025-08-14 11:17:57
* @Entity com.jiazixuan.stock.pojo.entity.StockBusiness
*/
public interface StockBusinessMapper {

    int deleteByPrimaryKey(String id);

    int insert(StockBusiness record);

    int insertSelective(StockBusiness record);

    StockBusiness selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(StockBusiness record);

    int updateByPrimaryKey(StockBusiness record);

    /**
     * 获取所有股票的code
     * @return
     */
    List<String> getStockIds();
    /**
     * 个股主营业务
     */
    StockBusinessInfomation getInfomation(@Param("code") String code);
}
